// pages/user/userCenter/comps/shop/shop.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        userInfo: Object,
        shopInfo: Object
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        goShopIncome: function(e) {
            wx.navigateTo({
                url: '/pages/shopManager/accountManager/accountIncome/accountIncome?incomeType=' + e.currentTarget.dataset.type
            })
        },
        goShopMoney: function() {
            wx.navigateTo({
                url: '/pages/shopManager/accountManager/accountMoney/accountMoney/accountMoney'
            })
        },
        goShopInfo: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/shopInfo/shopInfo'
                })
            }
        },
        goGoodsManager: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/goodsManager/goodsManager/goodsManager?type=normal'
                })
            }
        },
        goVipGoods: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/goodsManager/goodsManager/goodsManager?type=vip'
                })
            }
        },
        goBannerManager: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/bannerManager/bannerList/bannerList'
                })
            }
        },
        goShopVideo: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopVideo/shopVideoManager/shopVideoManager'
                })
            }
        },
        goShopDemo: function() {
            wx.showToast({
                title: '暂未开放，敬请期待！',
                icon: 'none',
                duration: 2000
            })
        },
        goShopShare: function() {
            wx.showToast({
                title: '暂未开放，敬请期待！',
                icon: 'none',
                duration: 2000
            })
        },
        goShopPush: function() {
            wx.showToast({
                title: '暂未开放，敬请期待！',
                icon: 'none',
                duration: 2000
            })
        },
        goShopOrders: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopOrders/orderList/orderList'
                })
            }
        },

        goShopExclusive: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/shopExclusive/shopExclusive/shopExclusive'
                })
            }
        },

        goCustomizeImg: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/customizeImg/customizeImg'
                })
            }
        },

        goRelayManager: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/relayManager/relayManager'
                })
            }
        },

        goVirtualOrders: function() {
            if (this.data.userInfo.store_info != 3) {
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
            } else {
                wx.navigateTo({
                    url: '/pages/shopManager/virtualOrder/orderList/orderList'
                })
            }
        }
    }
})